import request from '@/utils/request'

export function add(data) {
  return request({
    url: '/admin/banner/add',
    method: 'post',
    data
  })
}
export function getDetail(data) {
  return request({
    url: '/admin/banner/getDetail',
    method: 'post',
    data
  })
}

export function editContent(data) {
  return request({
    url: '/admin/banner/updateContent',
    method: 'post',
    data
  })
}
export function getList(data) {
  return request({
    url: '/admin/banner/getList',
    method: 'post',
    data
  })
}
export function changeFiled(data) {
  return request({
    url: '/admin/banner/editField',
    method: 'post',
    data
  })
}
export function remove(data) {
  return request({
    url: '/admin/banner/remove',
    method: 'post',
    data
  })
}
